package com.yc.tc.beans;

import java.io.Serializable;

/**
 * 景点详细信息表
 * 
 * @author Henry
 * 
 */
public class JdDetailInfo implements Serializable {
	private static final long serialVersionUID = 1L;

	private int jdid; // 编号
	private int jbid;
	private String addr; // 景点地址
	private String levelss; // 等级（4A、5A）
	private String pic; // 景点图片
	private String intr; // 景点描述
	private String edate; // 开放时间 （开始）
	private String sdate; // 开放时间（结束）
	private String temp;
	private String flag;

	@Override
	public String toString() {
		return "JdDetailInfo [jdid=" + jdid + ", jbid=" + jbid + ", addr="
				+ addr + ", levelss=" + levelss + ", pic=" + pic + ", intr="
				+ intr + ", edate=" + edate + ", sdate=" + sdate + ", temp="
				+ temp + ", flag=" + flag + "]";
	}

	public int getJdid() {
		return jdid;
	}

	public void setJdid(int jdid) {
		this.jdid = jdid;
	}

	public int getJbid() {
		return jbid;
	}

	public void setJbid(int jbid) {
		this.jbid = jbid;
	}

	public String getAddr() {
		return addr;
	}

	public void setAddr(String addr) {
		this.addr = addr;
	}

	public String getLevelss() {
		return levelss;
	}

	public void setLevelss(String levelss) {
		this.levelss = levelss;
	}

	public String getPic() {
		return pic;
	}

	public void setPic(String pic) {
		this.pic = pic;
	}

	public String getIntr() {
		return intr;
	}

	public void setIntr(String intr) {
		this.intr = intr;
	}

	public String getEdate() {
		return edate;
	}

	public void setEdate(String edate) {
		this.edate = edate;
	}

	public String getSdate() {
		return sdate;
	}

	public void setSdate(String sdate) {
		this.sdate = sdate;
	}

	public String getTemp() {
		return temp;
	}

	public void setTemp(String temp) {
		this.temp = temp;
	}

	public String getFlag() {
		return flag;
	}

	public void setFlag(String flag) {
		this.flag = flag;
	}

	public static long getSerialversionuid() {
		return serialVersionUID;
	}

	@Override
	public int hashCode() {
		final int prime = 31;
		int result = 1;
		result = prime * result + ((addr == null) ? 0 : addr.hashCode());
		result = prime * result + ((edate == null) ? 0 : edate.hashCode());
		result = prime * result + ((flag == null) ? 0 : flag.hashCode());
		result = prime * result + ((intr == null) ? 0 : intr.hashCode());
		result = prime * result + jbid;
		result = prime * result + jdid;
		result = prime * result + ((levelss == null) ? 0 : levelss.hashCode());
		result = prime * result + ((pic == null) ? 0 : pic.hashCode());
		result = prime * result + ((sdate == null) ? 0 : sdate.hashCode());
		result = prime * result + ((temp == null) ? 0 : temp.hashCode());
		return result;
	}

	@Override
	public boolean equals(Object obj) {
		if (this == obj)
			return true;
		if (obj == null)
			return false;
		if (getClass() != obj.getClass())
			return false;
		JdDetailInfo other = (JdDetailInfo) obj;
		if (addr == null) {
			if (other.addr != null)
				return false;
		} else if (!addr.equals(other.addr))
			return false;
		if (edate == null) {
			if (other.edate != null)
				return false;
		} else if (!edate.equals(other.edate))
			return false;
		if (flag == null) {
			if (other.flag != null)
				return false;
		} else if (!flag.equals(other.flag))
			return false;
		if (intr == null) {
			if (other.intr != null)
				return false;
		} else if (!intr.equals(other.intr))
			return false;
		if (jbid != other.jbid)
			return false;
		if (jdid != other.jdid)
			return false;
		if (levelss == null) {
			if (other.levelss != null)
				return false;
		} else if (!levelss.equals(other.levelss))
			return false;
		if (pic == null) {
			if (other.pic != null)
				return false;
		} else if (!pic.equals(other.pic))
			return false;
		if (sdate == null) {
			if (other.sdate != null)
				return false;
		} else if (!sdate.equals(other.sdate))
			return false;
		if (temp == null) {
			if (other.temp != null)
				return false;
		} else if (!temp.equals(other.temp))
			return false;
		return true;
	}

}
